package com.example.aop.controller;

import com.example.aop.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TestController
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/12/2 12:19
 * @Version 1.0
 */
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1() {
        return "t1";
    }
    @MyAspect
    @RequestMapping("/t2")
    public String t2() {
        return "t2";
    }
}
